<div class="panel panel-default">
    <div class="panel-heading">

        <form class="search-form form-inline">
            <div class="form-group">
                <label>
                    <a>文章管理</a>
                    &nbsp;>>
                    <a>添加分类</a></label>
            </div>
            &nbsp;</form>

    </div>
    <div class="panel-body">
        <div class="table-responsive">
            <form class="submit-form">
                <div class="form-group">
                    <label for="cate_name">分类名称</label>
                    <input type="text" name="cate_name" class="form-control" id="cate_name" placeholder="请输入分类名称">
                </div>
                <div class="form-group">
                    <label for="pid">上级分类</label>
                    <select name="pid" id="pid" class="form-control">
                        <option value="0" >
                            请选择上级分类
                        </option>
                        {foreach $parentCateList as $k => $v}
                        <option value="{$v.id}" >
                            {$v.cate_name}
                        </option>
                        {/foreach}
                    </select>
                    <p class="help-block">顶级分类无需选择</p>
                </div>
                <div class="form-group">
                    <label for="cate_sort">排序</label>
                    <input type="text" class="form-control" name="cate_sort" id="cate_sort" placeholder="请输入0~127之间数值，数值越大排序越前" value="127">
                    <p class="help-block">请输入0~127之间数值，数值越大排序越前</p>
                </div>
                <input type="hidden" name="act" value="{:url($act)}">
                <input type="hidden" name="req_sub" value="1">
                <button type="submit" class="ajax-btn btn btn-info">添加</button>
            </form>
        </div>
    </div>
</div>
